import { createTrue } from 'typescript'

const PRJ_MODEL = 1 //0：本地开发环境，1：本地测试环境，2：生产测试环境，3：生产环境，4：红狮，5：西南，6：塔牌

// 帮助中心预览链接地址
let HELP_CENTER_REVIEW_LINK_URL = ''
// 帮助中心编辑链接地址
let HELP_CENTER_EDIT_LINK_URL = ''
if (Object.is(PRJ_MODEL, 0) || Object.is(PRJ_MODEL, 1)) {
  HELP_CENTER_REVIEW_LINK_URL = 'http://192.168.10.111/content/#/help-center'
  HELP_CENTER_EDIT_LINK_URL = 'http://192.168.10.111/content'
} else {
  HELP_CENTER_REVIEW_LINK_URL = 'https://content.truckloading.cn/#/help-center'
  HELP_CENTER_EDIT_LINK_URL = 'https://content.truckloading.cn'
}

// 新汉德平台链接地址
let NEW_HD_LINK_URL = ''
// 供应链链接地址（只是新汉德平台的某个页面，目前统一成新汉德平台）
let SUPPLY_CHAIN_LINK_URL = ''
// 商城链接地址
let SHOP_LINK_URL = ''
if (Object.is(PRJ_MODEL, 0)) {
  // 新汉德平台链接地址
  NEW_HD_LINK_URL = 'http://192.168.10.111/hdadmin'
  // 供应链链接地址
  SUPPLY_CHAIN_LINK_URL = 'http://192.168.10.111/hdadmin'
  // 商城链接地址
  SHOP_LINK_URL = 'http://192.168.10.111/shop'
} else if (Object.is(PRJ_MODEL, 1)) {
  // 新汉德平台链接地址
  NEW_HD_LINK_URL = 'http://192.168.10.113/hdadmin'
  // 供应链链接地址
  SUPPLY_CHAIN_LINK_URL = 'http://192.168.10.113/hdadmin'
  // 商城链接地址
  SHOP_LINK_URL = 'http://192.168.10.113/shop'
} else {
  // 新汉德平台链接地址
  NEW_HD_LINK_URL = 'http://hdadmin.truckloading.cn'
  // 供应链链接地址
  SUPPLY_CHAIN_LINK_URL = 'http://hdadmin.truckloading.cn'
  // 商城链接地址
  SHOP_LINK_URL = 'http://shop.truckloading.cn'
}

// 汉德平台默认地址
let BaseURL = ''
//本地开发环境
if (Object.is(PRJ_MODEL, 0)) {
  // BaseURL = 'http://192.168.10.115:8088/'
  BaseURL = 'http://192.168.10.111:8088/'
} else if (Object.is(PRJ_MODEL, 1)) {
  BaseURL = 'http://192.168.10.113:8088/'
} else if (Object.is(PRJ_MODEL, 2)) {
  BaseURL = 'http://119.23.230.76:8088/'
} else if (Object.is(PRJ_MODEL, 3)) {
  BaseURL = 'http://www.truckloading.cn/'
} else if (Object.is(PRJ_MODEL, 4)) {
  BaseURL = 'http://122.226.40.70:8088/'
} else if (Object.is(PRJ_MODEL, 5)) {
  BaseURL = 'http://182.131.1.72:58088/'
} else if (Object.is(PRJ_MODEL, 6)) {
  BaseURL = 'http://124.71.214.122:8088/'
} else {
  BaseURL = 'http://www.truckloading.cn/'
}

export const config: any = {
  defaultLocale: 'us',
  API_URL: 'assets/api',
  BaseURL,
  HELP_CENTER_REVIEW_LINK_URL,
  HELP_CENTER_EDIT_LINK_URL,
  NEW_HD_LINK_URL,
  SUPPLY_CHAIN_LINK_URL,
  SHOP_LINK_URL,
  PRJ_MODEL,
  // BaseURL: 'http://192.168.10.111:8080/cargpsw/', // 开发环境

  //	BaseURL:'http://39.108.114.33:8081/',

  //  BaseURL:'http://www.truckloading.cn/', //生产环境

  //	BaseURL: 'http://119.23.230.76:8088/', //线上测试环境

  //	BaseURL:'http://123.207.240.16:8088/',

  //	BaseURL:'http://www.truckloading.cn/web',

  menu_speed: 200,

  smartSkin: 'smart-style-0',

  urls: {
    home: {
      carOnline: 'mainstat/online.html', //车辆在线情况
      carMap: 'mainstat/carmap.html', //车辆分布情况
      logtraffic: 'log/logtraffic.html', //车辆流量统计; param:{type：''}; 注： type= 0(半小时内数据);type = 1(间隔10s刷新一次数据)
      flow: 'trafficFlowShow/queryTrafficFlowList.html', //流量统计;param:{state:'',X:''};注：state:汇总时间类型;X:汇总的时间范围
      user: 'apishow/queryUserList.html', //用户TOP5统计;param:{state:'',X:''};注：state:汇总时间类型;X:汇总的时间范围
      api: 'apishow/queryApiList.html', //api TOP5统计;param:{state:'',X:''};注：state:汇总时间类型;X:汇总的时间范围
      sensor: 'sensormonitor/countForSensorStatus.html', //传感器总数量统计
      deviceRepaired: 'deviceRepaired/countWaitDeviceRepaired.html', //待维修设备数量统计（近三天）
      deviceInstall: 'deviceInstall/countRecentThreeDay.html', //设备安装数量统计（近三天）
      flowTotal: 'mainstat/totalofelementfordb.html' //总流量数据统计
    },
    systemInfo: {
      user: {
        list: 'user/list.html', //table列表; param:{pageSize:'',nowPage:'',parameters:{name:''}}
        lockedStatus: 'user/updateLockedStatus.html', //web、api锁定、解锁; param:{userId:'',locked:''}
        del: 'user/deleteBatch.html', //用户删除; param:{ids:''}
        resetPassword: 'user/resetPassword.html', //重置密码; paramL{ids:'',name:'',userName:''}
        add: 'user/add.html', //新增用户提交; param:{}
        edit: 'user/edit.html', //编辑用户提交; param:{}
        detail: 'user/userInfo.html', //用户详情; param:{id:''}
        valid: 'user/withoutAuth/validateUserName.html', //用户名唯一性后台校验; param:{userName:''}
        menu: 'resource/resourceTreeSelectForUser.html', //用户菜单权限数据; param:{userId:''}
        car: 'role/carTreeSelectForUser.html', //用户车辆权限数据; param:{userId:''}
        menuSubmit: 'resource/updateResourcePermissionForUser.html', //用户权限菜单提交; param:{userId：'',resourceIds：'',isFollow:''} 注：isFollow = 1(同步角色);isFollow = 0(不同步角色);
        carSubmit: 'role/updateCarPermissionForUser.html' //用户权车辆提交; param:{userId：'',deviceIds：'',isFollow:''} 注：isFollow = 1(同步角色);isFollow = 0(不同步角色);
      },
      role: {
        roleList: 'role/roleList.html', //角色下拉列表
        list: 'role/list.html', //table列表; param:{pageSize:'',nowPage:'',parameters:{userName:''}}
        del: 'role/deleteBatch.html', //角色删除; param:{ids:''}
        valid: 'role/validateName.html', //角色唯一性后台校验;param:{name:''}
        add: 'role/add.html', //新增角色提交; param:{name:'',key:'',description:''}
        edit: 'role/edit.html', //编辑角色提交; param:{name:'',key:'',description:'',id:''}
        detail: 'role/roleInfo.html', //角色详情; param:{id:''}
        menu: 'resource/resourceTreeSelectForRole.html', //角色菜单权限数据; param:{roleId:''}
        car: 'role/carTreeSelectForRole.html', //角色车辆权限数据; param:{roleId:''}
        menuSubmit: 'resource/updateResourcePermissionForRole.html', //角色菜单权限提交; param:{roleId：'',resourceIds：''};
        carSubmit: 'role/updateCarPermissionForRole.html' //角色车辆权限提交; param:{roleId：'',deviceIds：'',companyIds:''};
      },
      resourse: {
        resourceList: 'resource/resourceList.html', //资源下拉列表
        list: 'resource/list.html', //table列表; param:{pageSize:'',nowPage:'',parameters:{name:'',type:''}}
        del: 'resource/deleteBatch.html', //资源删除; param:{ids:''}
        valid: 'resource/validateResourceName.html', //资源唯一性后台校验;param:{name:''}
        add: 'resource/add.html', //新增资源提交; param:{type:'',parentId:'',name:''，sourceKey:'',sourceUrl:'',path:'',icon:''}
        edit: 'resource/edit.html', //编辑资源提交; param:{type:'',parentId:'',name:''，sourceKey:'',sourceUrl:'',path:'',icon:'',id:''}
        detail: 'resource/resourceInfo.html' //资源详情; param:{id:''}
      },
      company: {
        companyList: 'company/companytree.html', //公司下拉列表
        list: 'company/list.html', //table列表; param:{pageSize:'',nowPage:'',parameters:{searchName:''}}
        del: 'company/deleteBatch.html', //公司删除; param:{ids:''}
        valid: 'company/validateName.html', //公司唯一性后台校验;param:{name:''}
        add: 'company/add.html', //新增公司提交; param:{provinceId:'',cityId:'',townId:''，companyName:'',email:'',tel:'',address:'',parentId:'',parentName:''}
        edit: 'company/edit.html', //编辑公司提交; param:{provinceId:'',cityId:'',townId:''，companyName:'',email:'',tel:'',address:'',parentId:'',parentName:'',id:''}
        detail: 'company/companyInfo.html', //公司详情; param:{id:''}
        region: 'company/regionList.html' //省市县数据;
      },
      car: {
        list: 'car/list.html', //table列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:'',useTypeL1:'',useTypeL2:'',companyId:'',sensorType:''}}
        del: 'car/deleteBatch.html', //车辆删除; param:{ids:''}
        valid: 'car/validateDeviceId.html', //公司唯一性后台校验;param:{name:''}
        add: 'car/add.html', //新增车辆提交; param:{companyId: '',deviceId:'',carNumber:'',loadCapacity:'',unit:'',useTypeL1:'',useTypeL2:'',sensorType:'',sensorAmount:'',carAxleAmount:'',carType:'',phone:'',file:'',type:'1'};
        edit: 'car/edit.html', //编辑车辆提交;param:{companyId: '',deviceId:'',carNumber:'',loadCapacity:'',unit:'',useTypeL1:'',useTypeL2:'',sensorType:'',sensorAmount:'',carAxleAmount:'',carType:'',phone:'',file:'',type:'2'};
        status: 'car/status.html', //车辆是否在线查询；param:{deviceId:''}
        detail: 'car/carInfo.html' //车辆详情; param:{id:''}
      }
    },
    log: {
      userList: 'log/loginfo.html', //用户操作日志table列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
      firmwareList: 'log/upgrade.html', //固件升级日志table列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:'',status:'',deviceId:''}}
      apiList: 'log/logapi.html', //api接口日志table列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:'',userName:'',apiName:'',startDate:'',endDate:''}}
      warningList: 'log/logwarn.html', //警告日志table列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:'',type:''}}
      sensorList: 'sensorResetLog/deleteForSensorResetLog.html', //传感器重置日志table列表;param:{pageSize:'',nowPage:'',parameters:{searchKey:'',logType:'',companyId:''}}
      sensorDel: 'sensorResetLog/deleteForSensorResetLog.html', //删除重置日志;param:{logId:''}
      sensorExportData: 'sensorResetLog/exportSensorResetLogFile.html' //重置日志导出;param:{searchKey:'',logType:'',companyId:''}
    },
    carMap: {
      markerInfo: 'gps/getcarbycityname.html', //地图车辆信息; param:{cityName:''}
      historyPath: 'track/follow.html', //车辆轨迹追踪; param:{deviceId:''}
      historyData: 'gps/historyData.html', //车辆历史数据; param:{deviceId:'',startTime:'',endTime:'',spaceTime:''}
      exporthistoryData: 'gps/exportDataNoShow.html', //历史数据导出; param:{deviceId:'',startTime:'',endTime:'',spaceTime:'',columns:[]}
      remarker: 'mapmarker/addmarker.html', //围栏提交 ; param:{id: '',name: '',companyId: '',companyName:'',typeId: '',typeName: '',markerType: 0,radius: '',site: false,electronicFence: false,color: '',lnglats: '',lng: '',lat: ''}
      getMarker: 'mapmarker/getmarker.html', //初始化围栏数据;
      delMarker: 'mapmarker/deletemarker.html', //删除围栏;param:{id:''}
      track: 'track/localtrack.html', //车辆轨迹; param:{deviceId:'',startTime:'',endTime:''}
      transportInfo: 'stats/transportforlist.html' //车辆运输过程信息; param:{deviceId:'',startTime:'',endTime:''}
    },
    statistics: {
      carSelectById: 'stats/carlist.html', //公司id拉取车辆数据; param:{companyId:''}
      carSelectByKey: 'stats/carListByCarNumber.html', //模糊匹配车辆数据; param:{carNumber:''}
      dataMap: {
        weight: 'weighbridge/weightforreal.html', //地磅重量; param:{deviceId:'',startTime:'',endTime:'',showModify:''}
        draw: 'stats/draw.html', //数据绘图,返回所有echart数据选项; param:{deviceId:'',startTime:'',endTime:'',showModify:''}
        getCarUnit: 'realtime/getRealTimeDataForBase.html' //获取车辆重量单位; param:{deviceId:''}
      },
      detailStats: 'stats/statfordetailpage.html', //车辆统计&淸运点统计&区域统计; param:{parameters:{deviceId:'',startTime:'',endTime:'',searchKey:'',dataType:''}};注：dataType  = '1'(车辆统计);dataType = '2'(淸运点统计);dataType = '3'(区域统计)
      weightExport: 'stats/weightlistExport.html', //车辆统计&淸运点统计&区域统计  数据导出; param:{deviceId:'',startTime:'',endTime:'',fileName:'',statsType:'',dataType:'1',searchKey:''};注：statsType = '1'(汇总导出);statsType = '2'(明细导出)
      deliverySelectBydeviceId: 'station/list.html', //淸运点select数据; param:{deviceId:''}
      garbageSites: {
        rawStsts: 'stats/rawdatalist.html', //垃圾站点统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:'',searchKey:'',dataType:''}};
        stationList: 'station/stationList.html', //垃圾站点数据; param:{deviceId:''}
        stationDel: 'station/deleteStation.html', //站点删除; param:{ids:''}
        stationAdd: 'station/addStation.html', //新增站点; param:{lng:'',lat:'',id:''}
        stationStreet: 'station/streetpage.html' //获取站点街道; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}};
      },
      transportNumber: 'transportNumber/getTransportNumberList', //运载趟数统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:''}};
      transportNumberExportPdf: 'transportNumber/allExportPdf', //运载趟数数据导出PDF; param:{carNumber:'',startTime:''，endTime:'',timeSlot:''}
      transportNumberExportExcel: 'transportNumber/allExportExcel', //运载趟数数据导出EXCEL; param:{carNumber:'',startTime:''，endTime:'',timeSlot:''}
      carEvent: 'event/eventdatalist.html', //事件统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:'',eventType:''}}
      weightErrorRateExport: 'weightdeviation/weightdeviationexport.html', //重量误差率数据导出; param:{deviceId:'',startTime:'',endTime:'',fileName:''}
      weightErrorRate: 'weightdeviation/list.html', //重量误差率统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:''}}
      transportProcess: 'stats/transportforpage.html', //运输过程统计; param:{pageSize:'',nowPage:'',parameters:{carNumber:'',startTime:'',endTime:''，status:''}};注：statu为空默认手动录入,status = '4'算法录入
      transportProcessDel: 'stats/deletetransportdata.html', //运输过程删除; param:{id:''}
      transportAlgorithnmExport: 'stats/transportforExport.html', //算法导出;param:{carNumber:'',startTime:'',endTime:'',fileName:''};
      youJieDetail: 'summary/summaryWeight.html', //友捷运输明细统计;param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:''}}
      youJieDetailExport: 'summary/wegithExportExcel.html', //友捷运输明细导出; param:{deviceId:'',startTime:''.endTime:''};
      youJieSum: 'summary/summaryWeightAllByCar.html', //友捷车辆汇总统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:''}}
      youJieSumExport: 'summary/wegithAllByCarExportExcel.html', //友捷车辆汇总导出; param:{deviceId:'',startTime:''.endTime:''}
      youJieTotal: 'summary/summaryWeightAll.html', //友捷汇总统计; param:{pageSize:'',nowPage:'',parameters:{startTime:'',endTime:''}}
      youJieTotalExport: 'summary/wegithAllExportExcel.html', //友捷汇总统计导出; param:{deviceId:'',startTime:''.endTime:''}
      yuanTongTransportWeight: 'transportweight/transportWeightList.html', //圆通车辆运输重量统计; param:{pageSize:'',nowPage:'',parameters:{deviceId:'',startTime:'',endTime:''}}
      yuanTongTransportWeightExport: 'transportweight/exportData.html' //圆通车辆运输重量导出; param:{deviceId:'',startTime:''.endTime:'',fileName:''}
    },
    SystemConfig: {
      carRunning: {
        binSelectList: 'system/bininfolist.htiml', //bin版本数据; param:{protocolVersion:''}
        mulUpgrade: 'system/upgradebatch.html', //批量升级; param:{companyId:'',protocolVersion:'',binId:'',weight:'',useTypeL2:'',isRepeat:''}
        offlineUpgrade: 'system/upgradeoffline.html', //离线设备升级; param:{protocolVersion：'',binId:'',deviceId:''}
        onlineUpgrade: 'system/upgradeonline.html', //在线设备升级; param：{protocolVersion：'',binId:'',deviceId:''}
        getWeight: 'weighbridge/weightforreal.htiml', //获取车辆重量; param:{deviceId:'',startTime:'',endTime:''}
        factorsWeight: 'system/calibration.htiml', //重量标定; param:{deviceId:'',startTime:'',endTime:'',weightForReal:'',paramValue:''}
        getParam: 'system/getParameter.html', //获取参数; param:{protocolVersion:'',deviceId:''}
        resetSensor: 'sensormonitor/resetForSensorInfo.html', //重置传感器; param:{deviceId:'',logType:''}
        remoteTuning: 'system/remotetuning.html', //远程更新参数, param:{online:'',deviceId:'',protocolVersion:'',channel1~channel16:''}
        weightFix: 'system/weightmodify.html', //重量修正; param:{deviceId:'',isRectify:'',factorRectify:'',typeRectify:''}注：typeRectify:'1'(倍数); typeRectify:'2'(固定值)
        resetDeviceId: 'system/uploaddeviceid.html', //重置设备编码; param:{deviceId:'',carNumber:'',newDeviceId:''}
        autoReset: 'system/autoreset.html', //自动清零; param:{deviceId:'',isAuto:''}
        remoteReset: 'system/remotereset.html', //清零; param:{protocolVersion:'',deviceId:'',isAuto:''}
        realTimeDataList: 'system/realTimeData.html', //车辆运行状态table数据; param:{pageSize:'',nowPage:'',parameters:{company:'',online:'',sort:'',searchKey:''}}
        realTimeDataDel: 'system/deleteById.html', //row数据删除; param:{id:''}
        outputDeviceId: 'devicemanage/sendCodeForReadDeviceId.html', //读取设备编号; param:{deviceId:'',protocolVersion:''}
        inputDeviceId: 'devicemanage/sendCodeForWriteDeviceId.html', //写设备编号; param:{deviceId:'',protocolVersion:'',writeDeviceId:''}
        outputDeviceStatue: 'devicemanage/sendCodeForReadDeviceStatus.html', //读取设备状态数据; param:{deviceId:'',protocolVersion:''}
        outputWeight: 'devicemanage/sendCodeForReadWeight.html', //读取当前重量; param:{deviceId:'',protocolVersion:''}
        outputUpload: 'devicemanage/sendCodeForReadTimePeriod.html', //读取上传频率; param:{deviceId:'',protocolVersion:''}
        inputUpload: 'devicemanage/sendCodeForWriteTimePeriod.html', //写上传频率; param:{deviceId:'',protocolVersion:'',time:''}
        outputDeviceVersion: 'devicemanage/sendCodeForReadDeviceVersion.html', //读取设备版本; param:{deviceId:'',protocolVersion:''}
        outputGSM: 'devicemanage/sendCodeForReadGsm.html', //读GSM; param:{deviceId:'',protocolVersion:''}
        outputGPS: 'devicemanage/sendCodeForReadGps.html', //读取GPS; param:{deviceId:'',protocolVersion:''}
        outputIP: 'devicemanage/sendCodeForReadIp.html', //读IP; param:{deviceId:'',protocolVersion:''}
        inputIP: 'devicemanage/sendCodeForWriteIp.html', //写IP; param:{deviceId:'',protocolVersion:'',ip:'',port:''}
        outputParams: 'devicemanage/sendCodeForReadAlgorithmParamter.html', //读取算法参数; param:{deviceId:'',protocolVersion:''}
        inputParams: 'devicemanage/sendCodeForWriteAlgorithmParamter.html', //写算法参数; param:{deviceId:'',protocolVersion:'',channel1~channel16:''}
        factoryReset: 'devicemanage/sendCodeForWriteReset.html', //恢复出厂设置; param:{deviceId:'',protocolVersion:''}
        remoteRestart: 'devicemanage/sendCodeForWriteRestart.html', //重启设备终端; param:{deviceId:'',protocolVersion:''}
        algorithmReset: 'devicemanage/sendCodeForWriteClearZero.html', //算法重启; param:{deviceId:'',protocolVersion:''}
        matlabReset: 'system/resetMatlabJobStartTime.htiml' //重置算法执行起点; param:{deviceId:'',startTime:''}
      },
      binDataList: 'bininfo/list.html', //固件管理; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
      binDataDel: 'bininfo/deleteBatch.html', //固件数据删除; param:{ids:''}
      addBin: 'bininfo/upload.html', //新增固件; param:{version:'',description:'',description:'',description:'',binFile:''}
      pathCorrection: 'track/rectifyfile.html', //轨迹纠偏; param:{deviceId:'',file:''}
      schedule: {
        list: 'job/list.html', //任务调度管理; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
        del: 'job/deleteBatch.html', //任务调度删除; param:{ids:''}
        runNow: 'job/runNow.html', //任务执行; param:{id:''}
        isOpen: 'job/updateStatus.html', //启用&停止任务; param:{id:'',status:''}
        detail: 'job/scheduleJobInfo.html', //调度任务row详情; param:{id:''}
        add: 'job/add.html', //新增调度任务; param:{jobName:'',beanClass:'',methodName:'',cronExpression:'',description:'',jobStatus:'',isConcurrent:''}
        edit: 'job/edit.html', //编辑调度任务; param:{jobName:'',beanClass:'',methodName:'',cronExpression:'',description:'',jobStatus:'',isConcurrent:'',id:''}
        param: {
          addOrUpd: 'job/addScheduleJobInfo.html', //新增或编辑参数配置; param:{repairStartDate:'',remHistoryData:'',mainParam:'',appointCompanyId:'',appointDeviceId:'',filterDeviceId:'',id:''}
          clearHistoryData: 'job/clearHistoricalData.html', //历史数据清零; param:{scheduleJobId:''}
          info: 'job/scheduleJobParamInfo.html', //获取个体参数; param:{scheduleJobId:''}
          addOrUpdParam: 'job/addOrUpdScheduleJobParam.html', //新增或编辑个体参数; param:{deviceId:'',carNumber:'',param:'',scheduleJobId:'',id:''}
          del: 'job/deleteScheduleJobParam.html' //删除个体参数; param:{id:''}
        }
      },
      gpsweightAPI: 'system/gpsweightAPI.html', //数据优化绘图(api平台接口); param:{deviceId:'',startTime:'',endTime:'',showModify:''}
      reviewList: 'system/datarewiew.html', //数据审核; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
      reviewDel: 'system/deletedatareview.html', //数据审核删除; param:{id:''}
      allReview: 'system/updatedatareview.html', //全部审核更新、启用、取消; param:{deviceId:'All',reviewDate:'',isReview:'',status:''}
      singleReview: 'system/updatedatareview.html', //审核更新、启用、取消; param:{deviceId:'',reviewDate:'',isReview:'',status:''}
      sensorList: 'sensormonitor/sensorInfoForPage.html', //传感器管理; param:{pageSize:'',nowPage:'',parameters:{searchKey:'',companyId:'',status:''}}
      sensorDel: 'sensormonitor/deleteForSensorInfo.html', //传感器删除; param:{deviceId:''}
      sensorReset: 'sensormonitor/resetForSensorInfo.html', //传感器重置; param:{deviceId:'',logType:''}
      sensorUnnormalList: 'sensormonitor/getSensorStatusByDeviceId.html', //传感器异常通道查看; param:{deviceId:''}
      autoRetifyTrack: 'track/autoretifytrack.html', //轨迹修复; param:{roadId:'',carNumber:'',deviceId:'',starPoint:'',runTime:'',runBefore:'',isCover:'',isMakeup:'',endPoint:'',stopTime:'',stopBefore:'',isRemove:'',startLng:'',startLat:'',endLng:'',endLat:''}
      cancelTrack: 'track/canceltrack.html', //撤销轨迹; param:{deviceId:'',startTime:'',endTime:'',isRemove:''}
      getAllRoad: 'track/getallroad.html', //拉取所有路线;
      updRoad: 'track/uploadroadfile.html', //上传路线; param{roadName:'',remark:'',file:''}
      delRoad: 'track/deleteroad.html', //删除路线; param:{id:''}
      deviceConnectionStatus: 'connectionStatus/connectionStatusForPage.html', //设备链路监控; param:{pageSize:'',nowPage:'',parameters:{companyId:'',deviceId:'',startTime:'',endTime:'',status:'',searchKey:''}}
      screenMonitor: 'car/listScreen.html', //屏幕监控; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
      screenConfig: 'car/addScreenCarConfig.html' //监控屏配置,绑定或解绑车辆; param:{screenId:'',carId:''}
    },
    data: {
      weight: {
        list: 'weighbridge/list.html', //地磅数据; param:{pageSize:'',nowPage:'',parameters:{carNumber:'',startTime:'',endTime:''}}
        del: 'weighbridge/deleteBatch.html', //地磅数据删除; param:{ids:''}
        templateDownload: 'resources/template/weighbridge-Template.xlsx', //模板下载;
        upload: 'weighbridge/upload.html', //重量文件上传; param:{file:''}
        fetchData: 'weighbridge/addDataFetch.html', //数据提取; param:{param:{carNumber:'',startTime:'',endTime:''}}
        exportData: 'weighbridge/allEmportFile.html' //数据导出; param:{param:{carNumber:'',startTime:'',endTime:''},columns:[{id:'carNumber',title:'车辆车牌号码'},{id:'date',title:'过磅时间'},{id:'weight',title:'载重量'}]}
      },
      experiment: {
        download: 'experiment/exportData.html', //实验数据下载; param:{deviceId:'',startTime:'',endTime:''}
        list: 'experiment/list.html', //实验数据; param:{pageSize:'',nowPage:'',parameters:{carNumber:'',startTime:'',endTime:''}}
        del: 'experiment/deleteData.html' //实验数据row删除; param:{id:''}
      },
      param: {
        list: 'experiment/bluetoothlist.html', //参数文件列表; param:{pageSize:'',nowPage:'',parameters:{searchKey:''}}
        del: 'experiment/deleteBatch.html', //参数文件删除; param:{deviceId:''}
        upload: 'experiment/upload.html' //参数文件上传; param:{carNumber:'',deviceId:'',version:'',file:''}
      }
    },
    rail: {
      list: 'mapmarker/markerpagelist.html', //围栏管理
      del: 'mapmarker/deletemarker.html' //围栏删除
    }
  },

  skins: [
    {
      name: 'smart-style-0',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-block btn-xs txt-color-white margin-right-5',
      style: {
        backgroundColor: '#4E463F'
      },
      label: 'Smart Default'
    },

    {
      name: 'smart-style-1',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-block btn-xs txt-color-white',
      style: {
        background: '#3A4558'
      },
      label: 'Dark Elegance'
    },

    {
      name: 'smart-style-2',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-xs btn-block txt-color-darken margin-top-5',
      style: {
        background: '#fff'
      },
      label: 'Ultra Light'
    },

    {
      name: 'smart-style-3',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-xs btn-block txt-color-white margin-top-5',
      style: {
        background: '#f78c40'
      },
      label: 'Google Skin'
    },

    {
      name: 'smart-style-4',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-xs btn-block txt-color-white margin-top-5',
      style: {
        background: '#bbc0cf',
        border: '1px solid #59779E',
        color: '#17273D !important'
      },
      label: 'PixelSmash'
    },

    {
      name: 'smart-style-5',
      logo: 'assets/img/logo.png',
      skinBtnClass: 'btn btn-xs btn-block txt-color-white margin-top-5',
      style: {
        background: 'rgba(153, 179, 204, 0.2)',
        border: '1px solid rgba(121, 161, 221, 0.8)',
        color: '#17273D !important'
      },
      label: 'Glass'
    }
  ],

  GOOGLE_API_KEY: 'AIzaSyDd8YW8k_J-Jkti-W4QNk5dL8O_5_2QUWY',

  sound_path: 'assets/sound/',
  sound_on: false,

  /**
   * DEBUGGING MODE
   * debugState = true; will spit all debuging message inside browser console.
   * The colors are best displayed in chrome browser.
   */

  debugState: false,
  debugStyle: 'font-weight: bold; color: #00f;',
  debugStyle_green: 'font-weight: bold; font-style:italic; color: #46C246;',
  debugStyle_red: 'font-weight: bold; color: #ed1c24;',
  debugStyle_warning: 'background-color:yellow',
  debugStyle_success: 'background-color:green; font-weight:bold; color:#fff;',
  debugStyle_error: 'background-color:#ed1c24; font-weight:bold; color:#fff;',

  /**
   *  VOICE CONTROL
   */
  voice_command: true,
  voice_command_auto: false,

  /**
   *  Sets the language to the default 'en-US'. (supports over 50 languages
   *  by google)
   *
   *  Afrikaans         ['af-ZA']
   *  Bahasa Indonesia  ['id-ID']
   *  Bahasa Melayu     ['ms-MY']
   *  CatalГ            ['ca-ES']
   *  ДЊeЕЎtina         ['cs-CZ']
   *  Deutsch           ['de-DE']
   *  English           ['en-AU', 'Australia']
   *                    ['en-CA', 'Canada']
   *                    ['en-IN', 'India']
   *                    ['en-NZ', 'New Zealand']
   *                    ['en-ZA', 'South Africa']
   *                    ['en-GB', 'United Kingdom']
   *                    ['en-US', 'United States']
   *  EspaГ±ol          ['es-AR', 'Argentina']
   *                    ['es-BO', 'Bolivia']
   *                    ['es-CL', 'Chile']
   *                    ['es-CO', 'Colombia']
   *                    ['es-CR', 'Costa Rica']
   *                    ['es-EC', 'Ecuador']
   *                    ['es-SV', 'El Salvador']
   *                    ['es-ES', 'EspaГ±a']
   *                    ['es-US', 'Estados Unidos']
   *                    ['es-GT', 'Guatemala']
   *                    ['es-HN', 'Honduras']
   *                    ['es-MX', 'MГ©xico']
   *                    ['es-NI', 'Nicaragua']
   *                    ['es-PA', 'PanamГЎ']
   *                    ['es-PY', 'Paraguay']
   *                    ['es-PE', 'PerГє']
   *                    ['es-PR', 'Puerto Rico']
   *                    ['es-DO', 'RepГєblica Dominicana']
   *                    ['es-UY', 'Uruguay']
   *                    ['es-VE', 'Venezuela']
   *  Euskara           ['eu-ES']
   *  FranГ§ais         ['fr-FR']
   *  Galego            ['gl-ES']
   *  Hrvatski          ['hr_HR']
   *  IsiZulu           ['zu-ZA']
   *  ГЌslenska         ['is-IS']
   *  Italiano          ['it-IT', 'Italia']
   *                    ['it-CH', 'Svizzera']
   *  Magyar            ['hu-HU']
   *  Nederlands        ['nl-NL']
   *  Norsk bokmГҐl     ['nb-NO']
   *  Polski            ['pl-PL']
   *  PortuguГЄs        ['pt-BR', 'Brasil']
   *                    ['pt-PT', 'Portugal']
   *  RomГўnДѓ          ['ro-RO']
   *  SlovenДЌina       ['sk-SK']
   *  Suomi             ['fi-FI']
   *  Svenska           ['sv-SE']
   *  TГјrkГ§e          ['tr-TR']
   *  Р±СЉР»РіР°СЂСЃРєРё['bg-BG']
   *  PСѓСЃСЃРєРёР№     ['ru-RU']
   *  РЎСЂРїСЃРєРё      ['sr-RS']
   *  н•њкµ­м–ґ         ['ko-KR']
   *  дё­ж–‡            ['cmn-Hans-CN', 'ж™®йЂљиЇќ (дё­е›Ѕе¤§й™†)']
   *                    ['cmn-Hans-HK', 'ж™®йЂљиЇќ (й¦™жёЇ)']
   *                    ['cmn-Hant-TW', 'дё­ж–‡ (еЏ°зЃЈ)']
   *                    ['yue-Hant-HK', 'зІµиЄћ (й¦™жёЇ)']
   *  ж—Ґжњ¬иЄћ         ['ja-JP']
   *  Lingua latД«na    ['la']
   */
  voice_command_lang: 'en-US',
  /**
   *  Use localstorage to remember on/off (best used with HTML Version)
   */
  voice_localStorage: false,
  /**
   * Voice Commands
   * Defines all voice command variables and functions
   */

  voice_commands: {
    //
    //  'show dashboard': {
    //    type: 'navigate', payload: ['/dashboard/+analytics']
    //  },
    //  'show +social': {
    //    type: 'navigate', payload: ['/dashboard/+social']
    //  },
    //  'show outlook': {
    //    type: 'navigate', payload: ['/outlook']
    //  },
    //  'show graphs': {
    //    type: 'navigate', payload: ['/graphs/chart-js']
    //  },
    //  'show flot chart': {
    //    type: 'navigate', payload: ['/graphs/flot-charts']
    //  },
    //  'show morris chart': {
    //    type: 'navigate', payload: ['/graphs/morris-charts']
    //  },
    //  'show inline chart': {
    //    type: 'navigate', payload: ['/graphs/sparklines']
    //  },
    //  'show dygraphs': {
    //    type: 'navigate', payload: ['/graphs/dygraphs']
    //  },
    //  'show tables': {
    //    type: 'navigate', payload: ['/tables/normal']
    //  },
    //  'show data table': {
    //    type: 'navigate', payload: ['/tables/datatables']
    //  },
    //  'show form': {
    //    type: 'navigate', payload: ['/forms/elements']
    //  },
    //  'show form layouts': {
    //    type: 'navigate', payload: ['/forms/layouts']
    //  },
    //  'show form validation': {
    //    type: 'navigate', payload: ['/forms/validation']
    //  },
    //  'show form elements': {
    //    type: 'navigate', payload: ['/forms/bootstrap-elements']
    //  },
    //  'show form plugins': {
    //    type: 'navigate', payload: ['/forms/plugins']
    //  },
    //  'show form wizards': {
    //    type: 'navigate', payload: ['/forms/wizards']
    //  },
    //  'show bootstrap editor': {
    //    type: 'navigate', payload: ['/forms/editors']
    //  },
    //  'show dropzone': {
    //    type: 'navigate', payload: ['/forms/dropzone']
    //  },
    //  'show image cropping': {
    //    type: 'navigate', payload: ['/forms/image-cropping']
    //  },
    //  'show general elements': {
    //    type: 'navigate', payload: ['/ui/general-elements']
    //  },
    //  'show buttons': {
    //    type: 'navigate', payload: ['/ui/buttons']
    //  },
    //  'show fontawesome': {
    //    type: 'navigate', payload: ['/ui/icons/font-awesome']
    //  },
    //  'show glyph icons': {
    //    type: 'navigate', payload: ['/ui/icons/glyphicons']
    //  },
    //  'show flags': {
    //    type: 'navigate', payload: ['/ui/icons/flags']
    //  },
    //  'show grid': {
    //    type: 'navigate', payload: ['/ui/grid']
    //  },
    //  'show tree view': {
    //    type: 'navigate', payload: ['/ui/treeviews']
    //  },
    //  'show nestable lists': {
    //    type: 'navigate', payload: ['/ui/nestable-lists']
    //  },
    //  'show jquery U I': {
    //    type: 'navigate', payload: ['/ui/jquery-ui']
    //  },
    //  'show typography': {
    //    type: 'navigate', payload: ['/ui/typography']
    //  },
    //  'show calendar': {
    //    type: 'navigate', payload: ['/calendar']
    //  },
    //  'show widgets': {
    //    type: 'navigate', payload: ['/widgets']
    //  },
    //  'show gallery': {
    //    type: 'navigate', payload: ['/app-views/gallery']
    //  },
    //  'show maps': {
    //    type: 'navigate', payload: ['/maps']
    //  },
    //  'go back': (): any => {
    //    history.back();
    //  },
    //  'scroll up': (): any => {
    //    jQuery('html, body').animate({scrollTop: 0}, 100);
    //  },
    //  'scroll down': (): any => {
    //    jQuery('html, body').animate({scrollTop: jQuery(document).height()}, 100);
    //  },
    //  'hide navigation': {
    //    type: 'layout',
    //    payload: 'hide navigation'
    //  },
    //  'show navigation': {
    //    type: 'layout',
    //    payload: 'show navigation'
    //  },
    //  'mute': {
    //    type: 'sound',
    //    payload: 'mute',
    //  },
    //  'sound on': {
    //    type: 'sound',
    //    payload: 'sound on',
    //  },
    //  'stop': {
    //    type: 'voice',
    //    payload: 'stop'
    //  },
    //  'help': {
    //    type: 'voice',
    //    payload: 'help on'
    //  },
    //  'got it': {
    //    type: 'voice',
    //    payload: 'help off'
    //  },
    //  'logout': {
    //    type: 'navigate',
    //    payload: ['/auth/login'],
    //  },
  }
}

// required for SmartNotification
window['jQuery'].sound_on = config.sound_on
window['jQuery'].sound_path = config.sound_path
